import {NavigatorRouteType, NavType} from "plain-micro-application";

export function registryDemoApplication(nav: NavType) {

    /*测试预定义路由*/
    nav.micro.route({title: '测试public路由', type: NavigatorRouteType.public, path: 'test/test-public-route', route: 'test-public/:id/:code',})
    nav.micro.route({title: '测试private路由', type: NavigatorRouteType.private, path: 'test/test-private-route', route: 'test-private/:id/:code',})
    nav.micro.route({title: '测试home路由', type: NavigatorRouteType.home, path: 'test/test-home-route', route: 'test-home/:id/:code',})

    /*测试vue2页面跳转*/
    nav.micro.route({title: '测试Vue2页面跳转', type: NavigatorRouteType.home, path: 'modules/crm/base/test-nav/test-nav-page-1', route: 'test-nav-vue2/:count',})
    /*测试vue3页面跳转*/
    nav.micro.route({title: '测试Vue3页面跳转', type: NavigatorRouteType.home, path: 'micro-test/demo-nav-page-1', route: 'test-nav-vue3/:count',})

    /*测试micro组件及其服务*/
    nav.micro.route({title: '测试MicroDialog', type: NavigatorRouteType.home, path: 'micro-test/demo-micro-dialog', route: 'test/dialog',})
    nav.micro.route({title: '测试MicroLib', type: NavigatorRouteType.home, path: 'micro-test/demo-micro-lib', route: 'test/lib',})
}